<?php keke_tpl_class::checkrefresh('task/match/tpl/default/work', '1459833690' );?><?php if(!$arrWorkService['WorkWikiTotal']) { ?>
<div class="no-data">
<p class="lead text-warning">
<i class="fa fa-frown-o fa-lg"></i> 暂无交稿哦！<?php if($gUid !=$arrTaskInfo['uid']) { ?><a href="index.php?do=taskhandle&op=matchquote&taskId=<?php echo $arrTaskInfo['task_id'];?>">我来交稿</a><?php } ?>
</p>
</div>
<?php } else { ?>
<!-- second-nav end -->
<ul class="nav nav-pills second-nav">
<?php if(is_array($arrSearchStatus)) { foreach($arrSearchStatus as $k => $v) { ?>
<li <?php if($s== $k) { ?>class="active"<?php } ?>><a href="index.php?do=task&id=<?php echo $id;?>&s=<?php echo $k;?>#detail"><?php echo $v;?></a></li> <?php } } ?>
</ul>
<div class="manuscripts">
<div id="gj_summery">
<?php if($arrWorkInfo) { ?> <?php if(is_array($arrWorkInfo)) { foreach($arrWorkInfo as $k => $v) { ?>
<div id="<?php echo $v['work_id'];?>" class="manuscript-item">

<div class="manuscript-status">
<?php if($v['work_status']) { ?>
<div class="status-item status-<?php echo $arrWorkFlag[$v['work_status']]['id'];?>">
<i class="fa <?php echo $arrWorkFlag[$v['work_status']]['style'];?>"></i> <?php echo $arrWorkFlag[$v['work_status']]['name'];?>
</div>
<?php } ?>
</div>
<div class="manuscript-item-pic">
<a href="index.php?do=seller&id=<?php echo $v['uid']?>" title="<?php echo $v['username']?>"> <?php echo  keke_user_class::get_user_pic($v['uid'],'larger') ?>
</a> <a href="index.php?do=seller&id=<?php echo $v['uid']?>" class="btn btn-default btn-xs btn-block">进入店铺</a> <?php if($gUid!=$v['uid']) { ?> <a href="javascript:sendMessage(<?php echo $v['uid'];?>);void(0);" class="btn btn-default btn-xs btn-block">联系我</a> <?php } ?>
</div>
<div class="manuscript-item-content">
<div class="manuscript-item-body">
<h2 class="manuscript-item-title">
<i class="fa fa-user"></i> 投稿人: <a href="index.php?do=seller&id=<?php echo $v['uid']?>" title="<?php echo $v['username']?>"><?php echo $v['username']?></a>
<?php $arrUserLeve=unserialize($v[seller_level]) ?>
<?php echo $arrUserLeve['pic'];?>
</h2>
<?php if($v['work_status']==8||(($v['workhide']==1 || $v['work_hidden']==1)&&$gUid!=$arrTaskInfo['uid']&&$gUid!=$v['uid'])) { ?>

<div class="no-data">
<p class="lead text-warning">
<i class="fa fa-ban fa-2x"></i> 您无权查看 ！
</p>
</div>
<?php } else { ?>
<div class="manuscript-desc">

<table class="table table-bordered">
<tbody>
<tr>
<th width="20%">报价</th>
<td><span class="money"> <sub>￥</sub> <?php echo $v['quote'];?>
</span></td>
</tr>

<tr>
<th width="20%">工作天数</th>
<td><span class="money"> <sub></sub> <?php echo $v['cycle'];?>
</span> 天</td>
</tr>

<tr>
<th>报价描述</th>
<td>
<?php echo htmlspecialchars_decode($v['quote_desc']) ?>
</td>
</tr>
<?php if($v['work_desc']) { ?>
<tr>
<th>完工说明</th>
<td>
<?php echo htmlspecialchars_decode($v['work_desc']) ?>
<ul>
<?php if(is_array($arrFileLists)) { foreach($arrFileLists as $k1 => $v1) { ?>
<li class="detail-affix-item"><a href="<?php echo $v1['save_name'];?>" target="_blank"> <i class="fa fa-download"></i> <?php echo $v1['file_name'];?>
</a></li> <?php } } ?>
</ul>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>

<div class="manuscript-ctrl">
<?php if($uid&&$uid==$intGuid&&$v['work_status']==4) { ?> <?php if($arrProcess_can['work_cancel']) { ?>
<!--淘汰威客 start-->
<a href="javascript:workCancel();void(0);" class="btn btn-danger btn-sm"> <i class="fa fa-ban"></i> 淘汰威客
</a> <?php } ?>
<!--淘汰威客 end-->
<?php if($arrProcess_can['work_cancel']) { ?>
<!--托管赏金 start-->
<a href="javascript:taskHost('<?php echo $arrTaskInfo['task_id'];?>');void(0);" class="btn btn-success btn-sm"> <i class="fa fa-rmb"></i> 托管赏金
</a> <?php } ?>
<!--托管赏金 end-->
<?php if($arrProcess_can['notify_confirm']) { ?>
<!--提醒确认 start-->
<a href="javascript:sendNotice('start');void(0);" class="btn btn-info btn-sm"> <i class="fa fa-bell"></i> 提醒确认
</a> <?php } ?>
<!--提醒确认 end-->
<?php if($arrProcess_can['notify_over']) { ?>
<!--提醒完工 start-->
<a href="javascript:sendNotice('over');void(0);" class="btn btn-info btn-sm"> <i class="fa fa-bell"></i> 提醒完工
</a> <?php } ?>
<!--提醒完工 end-->
<?php if($arrProcess_can['notify_modify']) { ?>
<!--提醒修改 start-->
<a href="javascript:sendNotice('modify');void(0);" class="btn btn-info btn-sm"> <i class="fa fa-bell"></i> 提醒修改
</a> <?php } ?>
<!--提醒修改 end-->
<?php if($arrProcess_can['task_accept']) { ?>
<!--工作验收 start-->
<a href="javascript:taskAccept('<?php echo $arrTaskInfo['task_id'];?>');void(0);" class="btn btn-success btn-sm"> <i class="fa fa-check-circle"></i> 工作验收
</a> <?php } ?>
<!--工作验收 end-->
<?php } ?> <?php if($uid&&$uid==$intWuid&&$v['work_status']==4) { ?> <?php if($arrProcess_can['work_start']) { ?>
<!--开始工作 start-->
<a href="javascript:workStart();void(0);" class="btn btn-success btn-sm"> <i class="fa fa-check-circle"></i> 开始工作
</a> <?php } ?>
<!--开始工作 end-->
<?php if($arrProcess_can['work_over']) { ?>
<!--确认完工 start-->
<a href="javascript:workOver(0,'<?php echo $arrTaskInfo['task_id'];?>');void(0);" class="btn btn-success btn-sm"> <i class="fa fa-check-circle"></i> 确认完工
</a> <?php } ?>
<!--确认完工 end-->
<?php if($arrProcess_can['work_modify']) { ?>
<!--工作修改 start-->
<a href="javascript:workOver(1,'<?php echo $arrTaskInfo['task_id'];?>');void(0);" class="btn btn-default btn-sm"> <i class="fa fa-pencil"></i> 工作修改
</a> <?php } ?>
<!--工作修改 end-->
<?php if($arrProcess_can['work_give_up']) { ?>
<!--放弃投标 start-->
<a href="javascript:giveUp();void(0);" class="btn btn-danger btn-sm"> <i class="fa fa-ban"></i> 放弃投标
</a> <?php } ?>
<!--放弃投标 end-->
<?php if($arrProcess_can['notify_host']) { ?>
<!--提醒托管 start-->
<a href="javascript:sendNotice('host');void(0);" class="btn btn-info btn-sm"> <i class="fa fa-bell"></i> 提醒托管
</a> <?php } ?>
<!--提醒托管 end-->
<?php if($arrProcess_can['notify_accept']) { ?>
<!--提醒验收 start-->
<a href="javascript:sendNotice('accept');void(0);" class="btn btn-info btn-sm"> <i class="fa fa-bell"></i> 提醒验收
</a> <?php } ?>
<!--提醒验收 end-->
<?php if($arrProcess_can['modify_quote']) { ?>
<!--修改报价 start-->
<a href="index.php?do=taskhandle&op=matchquoteedit&taskId=<?php echo $arrTaskInfo['task_id'];?>&workId=<?php echo $v['work_id']?>" class="btn btn-success btn-sm"> <i class="fa fa-check-circle"></i> 修改报价
</a> <?php } ?>
<!--修改报价end-->
<?php } ?> <?php if($uid&&$v['work_status']==4&&($uid==$intWuid||$uid==$intGuid)) { ?> <a href="javascript:getContact();void(0);" class="btn btn-success btn-sm"> <i class="fa fa-check-circle"></i> 查看联系方式
</a> <?php } ?> <?php if(!$arrMark[$v['work_id']]||($arrMark[$v['work_id']]['mark_status']!=1&&$arrMark[$v['work_id']]['mark_count']<2)) { ?> <?php if($arrProcess_can['work_mark']&&$uid==$arrTaskInfo['uid']) { ?> <a href="javascript:mark(2,'<?php echo $v['work_id'];?>','<?php echo $id;?>');void(0);" class="btn btn-success btn-sm"><?php if($arrMark[$v['work_id']]['mark_status']) { ?>修改评价<?php } else { ?>稿件评价<?php } ?></a> </span> <?php } ?> <?php if($arrProcess_can['task_mark']&&$uid==$v['uid']) { ?> <a href="javascript:mark(1,'<?php echo $v['work_id'];?>','<?php echo $id;?>');void(0);" class="btn btn-success btn-sm"><?php if($arrMark[$v['work_id']]['mark_status']) { ?>修改评价<?php } else { ?>评价雇主<?php } ?></a> </span> <?php } ?> <?php } ?>
</div>

<div class="manuscript-comment">
<div id="div_comment<?php echo $v['work_id'];?>">
<?php if($gUid == $arrTaskInfo['uid']||$v['comment']) { ?>
<h2 class="manuscript-item-title">稿件点评</h2>
<?php } ?> <?php if(is_array($v['comment'])) { foreach($v['comment'] as $v1) { ?>
<dl class="manuscript-comment-item">
<dt class="manuscript-comment-item-title">
<a href="index.php?"><?php echo $v1['username']?></a> 于
<?php echo date('Y-m-d',$v1['on_time']) ?>
<?php $h = date('H',$v1['on_time']) ?>
<?php if($h>0&&$h<12) { ?>上午<?php } elseif($h>=12&&$h<19) { ?>下午<?php } else { ?>晚上<?php } ?>
<?php echo date('h:i:s',$v1['on_time']) ?>
点评:
</dt>
<dd class="manuscript-comment-item-body"><?php echo $v1['content']?></dd>
</dl>
<?php } } ?>
</div>
<?php if($gUid == $arrTaskInfo['uid']) { ?>
<div class="manuscript-comment-post">
<div class="form-group">
<textarea class="form-control" rows="3" name="strTarComment" id="strTarComment<?php echo $v['work_id'];?>" placeholder="点评不得超过100字"></textarea>
</div>
<div class="form-group">
<button type="button" onclick="workComment('<?php echo $v['task_id'];?>','<?php echo $v['work_id'];?>',<?php echo $v['uid'];?>);" class="btn btn-default btn-sm">
<i class="fa fa-comment"></i> 点评稿件
</button>
<span class="text-success" id="tipsUser"></span>
</div>
</div>
<?php } ?>
<!-- manuscript-comment-post end -->
</div>
<?php } ?>
</div>
<div class="manuscript-item-footer">
<ul class="manuscript-meta">
<li class="manuscript-meta-item">编号 #<?php echo $v['work_id'];?></li>
<li class="manuscript-meta-item">投稿时间： <?php if($v[work_time]){echo date('Y-m-d H:i:s',$v[work_time]); } ?>
</li>
<li class="manuscript-meta-item"><span class="marked marked-see"> <?php if($v['is_view']||$uid==$task_info['uid']) { ?> 雇主已浏览 <?php } else { ?> 雇主未浏览 <?php } ?> </span></li> <?php if($arrProcess_can['work_report']&&$gUid!=$v['uid']&&$v['work_status']!=7&&$gUid) { ?>
<li class="manuscript-meta-item"><a href="javascript:report(2,'work','<?php echo $v['uid'];?>','<?php echo $arrTaskInfo['task_id'];?>','<?php echo $v['work_id'];?>');void(0);" class="action-report"> <i class="fa fa-bell"></i> 举报
</a></li> <?php } ?> <?php if($arrProcess_can['task_rights']) { ?>
<li class="manuscript-meta-item"><?php if($uid==$arrTaskInfo['uid']&&$v['work_status']==4) { ?> <a href="javascript:report(1,'work','<?php echo $v['uid'];?>','<?php echo $arrTaskInfo['task_id'];?>','<?php echo $v['work_id'];?>');void(0);" class="action-report"> <?php } else { ?> <a href="javascript:report(1,'task','<?php echo $arrTaskInfo['uid'];?>','<?php echo $arrTaskInfo['task_id'];?>','<?php echo $arrTaskInfo['task_id'];?>');void(0);" class="action-report"> <?php } ?> <i class="fa fa-bell"></i> 维权
</a></li> <?php } ?>
</ul>
</div>
</div>
<!-- manuscript-item-content end -->
</div>
<?php } } ?> <?php } ?>
<!-- manuscript-item end-->


<!-- manuscripts end -->

<div class="list-page">
<div class="page-tips pull-left">显示 <?php echo $strPages['st'];?>~<?php echo $strPages['en'];?> 项 共 <?php echo $arrWorkArrs['count'];?> 个投稿</div>
<ul class="pagination pagination-sm pull-right"><?php echo $strPages['page'];?>
</ul>
</div>
</div>
</div>
<!-- list-page end -->
<?php } ?>
<?php keke_tpl_class::ob_out();?>